C++: Restructure UnsafeUseOfStrcat for performance#183
Merged
Conversation
This query gets optimized badly, and it has started timing out when we run it on our own code base. Most of the evaluation time is spent in an RA predicate named `#select#cpe#1#f#antijoin_rhs#1`, which takes 1m36s a Wireshark snapshot. This restructuring of the code makes the problematic RA predicate go away.
Contributor
|
This looks like a safe change to me. I briefly tried it out locally on three snapshots: Some of that is probably just variance but the last result looks promising. |
geoffw0
approved these changes
Sep 12, 2018
geoffw0
left a comment
Contributor
There was a problem hiding this comment.
LGTM, see my previous comment.
MathiasVP
added a commit
to MathiasVP/ql
that referenced
this pull request
Aug 10, 2025
C#: Add a hash-cons library for C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This query gets optimized badly, and it has started timing out when we run it on our own code base. Most of the evaluation time is spent in an RA predicate named
#select#cpe#1#f#antijoin_rhs#1, which takes 1m36s a Wireshark snapshot.This restructuring of the code makes the problematic RA predicate go away.
I'm targetting 1.18 here because if this query can cause timeouts on our internal dashboard then I worry that it's an observable regression since 1.17. I haven't actually been able to reproduce the timeout from the Dashboards/Internal Jenkins job, so this change may or may not fix it, but nothing else seems slow about this query.